package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单主对象 shop_order
 * 
 * @author ruoyi
 * @date 2025-10-20
 */
public class ShopOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号（唯一，主键） */
    private String orderId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 关联店铺ID */
    @Excel(name = "关联店铺ID")
    private Long storeId;

    /** 订单总金额（元） */
    @Excel(name = "订单总金额", readConverterExp = "元=")
    private BigDecimal orderAmount;

    /** 优惠金额（元） */
    @Excel(name = "优惠金额", readConverterExp = "元=")
    private BigDecimal discountAmount;

    /** 实际支付金额（元） */
    @Excel(name = "实际支付金额", readConverterExp = "元=")
    private BigDecimal payAmount;

    /** 订单状态（0-待支付，1-已支付，2-已取消，3-已完成） */
    @Excel(name = "订单状态", readConverterExp = "0=-待支付，1-已支付，2-已取消，3-已完成")
    private Integer orderStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /** 用户备注 */
    @Excel(name = "用户备注")
    private String userRemark;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }

    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }

    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }

    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }

    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }

    public void setUserRemark(String userRemark) 
    {
        this.userRemark = userRemark;
    }

    public String getUserRemark() 
    {
        return userRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("storeId", getStoreId())
            .append("orderAmount", getOrderAmount())
            .append("discountAmount", getDiscountAmount())
            .append("payAmount", getPayAmount())
            .append("orderStatus", getOrderStatus())
            .append("createTime", getCreateTime())
            .append("payTime", getPayTime())
            .append("finishTime", getFinishTime())
            .append("userRemark", getUserRemark())
            .toString();
    }
}
